package br.com.edoc.entidade;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name="MENUFUNCIONALIDADE")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class MenuFolha extends Menu {
	
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MenuFolha other = (MenuFolha) obj;
		if (this.getId() == null) {
			if (other.getId() != null)
				return false;
		} else if (!this.getId().equals(other.getId()))
			return false;
		return true;
	}
	public MenuFolha(Modulo modulo, Menu mother) {
		super(modulo, mother);
		// TODO Auto-generated constructor stub
	}
	public MenuFolha() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 3881293985078115774L;
	@Column(name = "MF_URL", nullable = false, length=50)
	private String url;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	

}
